﻿using System;

namespace WYJ.Log.UnitTests
{

    /// <summary>
    /// 待完成
    /// </summary>
    public class Debugger
    {
        private static int _did = 1;
        private readonly int _id;
        private int _sequence = 0;
        public string Name { get; set; }


        public Debugger(Type type)
        {
            _id = _did ++;
            Name = type.Name;
        }

        public void Next()
        {
            _sequence++;
        }
        public void WriteTag(string tagName, string msg)
        {
            Console.WriteLine($"{Name}_{_id}.{tagName}_{_sequence}:{msg}");
        }

        public void WriteLine(string msg)
        {
            Console.WriteLine($"{Name}_{_id}:{msg}");
        }
    }
}
